<!DOCTYPE HTML>
<html lang="pt-br" 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<h:head>
	
	<meta charset="UTF-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta name="description" content=""/>
	<meta name="author" content=""/>
	<meta http-equiv="cache-control" content="max-age=0" />
	<meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate"/>
	<meta http-equiv="cache-control" content="post-check=0, pre-check=0" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
	<meta http-equiv="pragma" content="no-cache" />
	
	<link rel="icon" type="image/png" href="#{facesContext.externalContext.request.contextPath}/lib/imagem/logomarca.png"/>
	
	<link href="#{facesContext.externalContext.request.contextPath}/lib/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
	<link href="#{facesContext.externalContext.request.contextPath}/lib/css/bootstrap-theme.min.css" rel="stylesheet" media="screen"/>
	<link href="#{facesContext.externalContext.request.contextPath}/lib/css/index.css" rel="stylesheet" media="screen"/>
	
	
	
	<title>Dallas Moto Peças - Login</title>
	
	<script>
	 window.history.forward(1);
	</script>
		
	</h:head>
	
	<h:body>
		<p:ajaxStatus onstart="PF('statusDialog').show();" onsuccess="PF('statusDialog').hide();"/>  
              
		<p:dialog modal="true" 
				widgetVar="statusDialog" 
				header="Carregando"   
	        	draggable="false" 
	        	closable="false"
	        	resizable="false"
	        	style="width:200px;">  
	    	<p:graphicImage value="/lib/imagem/gif-load.gif"/>  
		</p:dialog>
		<div class="container">
			<h:form class="form-signin" role="form" onkeypress="if (event.keyCode == 13){event.keyCode = 0}">
			<p:growl id="mensagem" showDetail="true" autoUpdate="true" closable="true" />
				<h2 class="form-signin-heading">Dallas Moto Peças</h2>
				
				<p:inputText type="text" 
							styleClass="form-control" 
							placeholder="Login"
							value="#{loginManagerBean.usuarioLogarVo.login}"/>
								
				<p:inputText type="password" 
							styleClass="form-control" 
							placeholder="Senha"
							value="#{loginManagerBean.usuarioLogarVo.senha}"/>
				<div><BR /></div>				
				<p:commandButton styleClass="btn btn-lg btn-primary btn-block" 
								value="Entrar" 
								actionListener="#{loginManagerBean.loginUsuario}"
								update="mensagem"/>
				
			</h:form>
		</div>
	
	
	</h:body>
</html>